//
//  MainViewController.h
//  CreditManager
//
//  Created by zhl on 2017/8/9.
//  Copyright © 2017年 zhl. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"

@interface MainViewController : UIViewController

/**
 *  修改状态栏颜色
 */
@property (nonatomic, assign) UIStatusBarStyle StatusBarStyle;



@property (nonatomic, strong) MBProgressHUD *hud;

/**
 设置NavigationBar
 */
- (void)setNavigationBarHidden:(BOOL)isHidden StatusBarStyle:(UIStatusBarStyle)StatusBarStyle barTintColor:(UIColor *)barTintColor;


/**
 跳转登录
 */
- (void)goLogin;
- (void)goLoginWithPush;

/**
 *  显示没有数据页面
 */
-(void)showNoDataImage;

/**
 *  移除无数据页面
 */
-(void)removeNoDataImage;
/**
 *  需要登录
 */
- (void)showShouldLoginPoint;

/**
 *  加载视图
 */
- (void)showLoadingAnimation;

/**
 *  停止加载
 */
- (void)stopLoadingAnimation;

/**
 是否隐藏导航栏
 */
@property (nonatomic, assign) BOOL isHidenNaviBar;

/**
 是否可以点击
 */
- (BOOL)isEnableWithKey:(NSString *)key;

/**
 显示遮罩
 */
- (void)showMaskView:(UIView *)maskView;

/**
 隐藏遮罩
 */
- (void)remvoeMaskView:(UIView *)maskView;


#pragma mark -- HUDAction
/** HUD展示*/
- (void)hudShowWithViewController:(UIViewController *)vc isHidden:(BOOL)isHidden;

/** HUD带字展示*/
- (void)hudShowWithWithViewController:(UIViewController *)vc Title:(NSString *)title isHidden:(BOOL)isHidden;

/** HUD消失*/
- (void)hudClose;

/** Alert展示消息*/
-(void)showAlert:(NSString*)alertStr;

/** 休眠后消失HUD*/
//- (void)doSomeWorkSleepTime:(int)sleepTime;
/** 弹框的弹出*/
- (void)alertWithTitle:(NSString *)title message:(NSString *)message Completion:(void (^)())completion;

@end

